// 获取attr接口参数类型
export interface GetAttrListApiParams {
    category1Id: number;
    category2Id: number;
    category3Id: number;
  }
  
  /*
     [{
        "attrName": "string", // 属性名
        "attrValueList": [ // 属性值列表
          {
            "id": 0, 
            "valueName": "string" // 属性值
          }
        ],
        "id": 0,
      }]
  */
  export interface AttrValueItem {
    id?: number;
    valueName: string;
  }
  
  export type AttrValueList = AttrValueItem[];
  
  export interface AttrItem {
    id?: number;
    attrName: string;
    attrValueList: AttrValueList;
  }
  
  export type AttrList = AttrItem[];
  
  // 添加属性参数类型
  export interface SaveAttrApiParams extends AttrItem {
    categoryId: number;
    categoryLevel: number;
  }
  
  // 添加属性使用的类型
  export interface SaveAttrValueItem extends AttrValueItem {
    isEdit: boolean;
  }
  
  export interface SaveAttrItem extends AttrItem {
    attrValueList: SaveAttrValueItem[];
  }
  